import Vue from 'vue'
import Vuex from 'vuex'

//挂载Vuex
Vue.use(Vuex)

//创建VueX对象
const store = new Vuex.Store({
    state:{
        enterpriseData:{},
        userData:{},
    },
    mutations:{
        setEnterprise(state,res){ //企业数据
            state.enterpriseData = res;
        },
        setUserInfo(state,res){ //用户数据
            state.userData = res;
        },
    }
})

export default store